Fixed some constants and cleaned up some comments.