Cleaned up variable names and finished code book