more output methods implemented. console and xml for now.