Replaced return type (id) of Class-factory methods with 'instancetype'
Replaced explicit reference to class name in logFileWithPath factory method