moved read_X_model() into util and make changes on the decoder and
init.py accordingly.
moved model Classes into API.