Use singleton to get app instance
Rewrote adapter to class format (new API)
Added whitespace and removed implode from mainRoute