added better startFromEnd slicing option
File writer improvements