Added the first set of unit tests and added more documentation / examples