rm old file
tidy up - docstrings, fmt, even spacing