Applied more coding standards, and simplified the getResults method