Linearized model + output FB

fixed #10,#11 and #17