Ability to load Pattern from XML, added next Button, new sample