Base model structure implemented. Basic API functionality started.