Added some first tests and documentation