added comments for changes made to original version