+ Improved debugging (and a command line option)
+ Improved title retrieval
+ Output encoding