Re-arranged styles definitions for better reusability.
Added a few comments for operations performed.