Refactored button code, fixed bugs, cleaned up main function, and added voice command capability