fixed bugs, new functionality. stable version 1.0