version update for release 1.0.6
minor code refactoring