Added buttons, fixed a few stray bugs. Added a settings file.