refactored a bit on model storing, instead of ./output now ./model/document ./model/collection