Updated to accept github authentication

And set the baseDir in the constructor function.