Added first useful functions
Added some tests
Added more functions