Add sphinx docs
Move all handler related logic to the handler class
Fixed include issue