added comments and equations