Fixed capitalization issues of knowrob classes and changed preEvent and postEvent to previousEvent and nextEvent, respectively

This closes #2