Stripped out useless stuff and changed some comments.