Stub of class and subclass construction

Also includes some accessor generation and constructor argument
validation.