Improved record dumping, added count and unpick commands