Fixed subtle error in a code example fragment
Implemented support for the file object that allows relative and absolute file paths + testcase