Commets and tweaks

Added comments to most of the files, and made a class for magic word
reading.