Cleaned up the guitar code and added comments