Added docstrings to functions, cleaner HSM.validate
Get all events machine is interested in