minor formatting improvements and comment additions before major testing