Added documentation and some minor cleanup with constants starts to show.