Cleaned up junk lines at beginning and end of document