Improved readme file with examples.

Changed the exceptions to be runtimeexceptions