Deleted unnecessary properties and changed some fields to private.
Fixed typo.