Added JUnit tests and javadocs

@nityasantoshi, you should merge your tests and documentation into `nityasantoshi:dev` and I'll merge them into `CIRDLES:dev`.