provided more thorough comments and finished tweaking/testing the count display