convert to sphinx for documentation