Improved build file
Added support for creating empty models and loading model database from file