Mavenized project

- also exchanged Asserts with IllegalStateExceptions