added more options - better default functions
styles
robust function solving + options