Policies configurable through the XML

#38, misc changes to comments