Final commit: Cleaned up code, fixed issue where NA score was crashing the app