some analysis tools I've developed in scala as I've needed them