Mavenized project

- exchanged Asserts with IllegalStateExceptions
Merge pull request #7 from hameno/mavenize

Mavenized project