Made line scanner also work on encoder data
Added encoder base. Parser fixes