Added some debug info and README.md

I have added some debug information and comments.
I have also added a skeleton README.md.