A toolkit for baseball research