Model update and added code documentation. Added resource API interfaces.