fix indentation.
Ignore vim .swp files
Add tests and fix errors for the API object
Add a simple syntax check for the middleware.