Added dates for variables (not finished), corrected some bugs, added comments