#20 splits the capture and output into two loops

stream lined light data and improved performance
Added new plugin type IPreOutputPlugin