added unit tests and more methods