updates to models and addition of lolapi.py