Readability

Added some comments to code, made code significantly more readable, and
fixed more bugs