adding comments to engine code. expanding/correcting variable names.