Updated read me and reduced code