Fixed problems with Record, general fixes across the board, added exception class