config will return entire collection of peerInfo rather that just one
added new constants
abstracted controller using "module" interface