tweaks on exception handling
Updated readme.md and license header in source files