Moved record definitions to seperate class, removed record type constants from record to fieldrecordtype... may reconsider this later.