Changed filename API
Added filename test cases
Added comment to a unexported function in cli