Get rid of YAML reading (unused).

Reorganize, edit, and delete crappy comments.
Update types, events, constants, functions.

Thanks to Kireji2 Haiku, fixes #2.