fix checkeqrcount, disable assertenv, documentation