Functions for each module of the model

still incomplete, need to check for consistency
Merge pull request #1 from dogata/master

Functions for each module of the model