Changed tabs back to 4 spaces as they were originally.
Added the rest of the constructor params to the getInstance method for consistancy. Issue #9
Fixed spelling error. Issue #9
Ran all code through the PHP Coding Standards Fixer from SensioLabs
fixed an over-zealous indention
Added _resolveFilename and improved both getInstance and __construct filename resolving.