Commented the code and added a readme for the project