Fixed augment order for check function (my function still doesn't match these values).
Added comments for a few functions.