Changed PHP open tags from short to full
Refactored class into smaller methods and params added to arrays
Fixed grades parsing for my version