Added controller and spec tests; updated controller and routes with inde...

...x