Proper main structure
No support for python2.5 I guess
Adding note about json