An old abandoned prototype of mine, the 'development' branch version had some more addititions but also has regressions which make it less playable this the 'master' branch version.
Development branch also has references in the Readme to some sources of math that were used.