Add register xmp namespace function
Add some comments
Rework single app