comments to //, gofmt and remove controller callback
move query base class to constructor, eliminate extra function
added basic config system