Corrected most methods.

Also corrected confusion between endog and exog
Passes all the tests
Corrected bug in cyclic fast_linbin