Updated the build example.
Added some unit tests.