added route reading ability
set up router completely
small tweek to the write