Mode functionality

Added the rest of the modes. Cleaned up populateScale method.