More pull request comments addressed

Added more tests
Added loading status to index post request and considerably increased test coverage