Added some docs; tweaked python script comments