Added SRecordType enumeration

Fixed a few variable types.