Final edit

Made changes and added comments