first draft of the gsl-less version
minor improvements
rm bin