update readme
code cleanup and readme update