added comments and fixed bug in resetmk so it now works in any dir