Updated ReadMe
Restructed some code to avoid repetion