Fixed fiew bug's, added normal RESTapi.