Added some tests and a constructor
Reformatted code