added flatline parser plus tests