Add basic test for cpymad.model
Fix some bugs discovered in model implementation
Update documentation (partial)