Added Tests and documentation, fixed bugs