Fixed shaving issue

Moved shaving code into FRA_Extractor, fixed an issue where a blank line
at the end of the log file would cause a crash.