added comments, formatting