Fixed byte compares with 0 to compares with 00h, added comments.