Optional linear

this introcudes linear interpretations. some features still missing (see several FIXME in source). works for SRS.