added comments

now with commented code.