added comments, cleaned up compiled source