Implement switch for incremental deposition, see ticket:113 and many small changes, see changelog.txt