Updated ReadMe doc and included comments in code