added output method
Merge branch 'master' of https://github.com/ganzm/ml2013