fit interface code done. needs testing
fixed bugs, fitting interface seem to be working fine
adding sample fitting interface usage