Prettified the sample templates, improved the Exception messages and the documentation and test case class.