more tests
fixed some tests and started JavaDoc