Added a few basic unit tests and some documentation

https://pbs.twimg.com/media/BcS2TArCUAAjEV4.jpg