status and getinfo-xml commands implemented
Comments and debug messages added
Some refactoring