Fixed mysqli errors and tested. Mysqli functions were missing connection parameter.
Fixed small bug related to creation of file and folder.
Merge pull request #12 from pcoder/master

Fixed mysqli error.