Implemented sound system

Also added Math helper class.

Did some cleanup.