new version of code

the algorithms are good (I think), but no visuals