fixed lot of bugs, 1.0 release commit
migrated to java 6
finally prepared for release
minor