ReadMe added, code refactored