almost working
added examples, linear constraints are working, fixed some bugs