Debug the codes a little.

I cloned the files to my desktop and tried to compile and run the source
codes. There were a few minor changes. :)