unit tests, documentation, created properties

added a few more unit tests. added some documentation in the code.
changed the java like get methods to properties.