Refactored ERP_Record class. separate attribute to hold all record data
Bugfixes. Little bit refactored.