added schema middleware
thinking about a websocket layer
fixed some typos and formatting