rename
Return the file instead of the path
return if file is null
Merge pull request #24 from cdmihai/recordBug

Record bug