made some fixes to bdf stream, added functions to concatenate raw instances with events within subjects