v1.03: tiny performance improvement, lots of commenting