Added Record object

Includes support for reading/writing records.