Add doc comments and makes router's home path configurable