added a few libs, added REST-methods, modified model.