Bug fixes

Fixed the majority of the bugs so that all the controllers run smoothly, for the most part.