Added some examples of usage and moved the unit tests of the examples into a file of its own.