Added support for pasting in loggfildata  #1

Refactored a bit