Used Flask-RESTful for API

Closes #162
remove line 3 and add the empty line above it