merge from master
added subdomain support
turned off debug mode
enhanced test script
regenerated docs