Added data output and fixed a tiapp.xml issue