Added a parse args function(sniped from turpintine shell script)
Added category base XML for import template
Added several attributes to the XML, to handle category settings