final fix of typos and errors. multiple period collapse work now