Link to Max's gist; more links and cleanup, ...