changed routing, added docs, changed style