Add valid_event? code
Fix YARD documentation in server.rb