removing dead code and fixing warnings
Updated readme.