Fixed some bugs, cleaned the code, provided comments and added a marker method for new observations