Updated readme documentation and comments + Misc Bugfixes.