Added assertions and javadoc comments.
Merge branch 'master' of https://github.com/alexsirbu/idp