Removed debugging code. Fixed spelling mistakes in comments.