Functionality to log and write to a file

Initial version of the code that logs to a file as well as can write
some data to an existing file
Some more additions to the File class
Modified the log function to accept errors
Merge remote-tracking branch 'upstream/master'
More changes to logger class
removed extra log functions from the static class
Merge pull request #3 from vrbrahme/master

Pull request after merging your changes