Revert "better organized and commented code."

This reverts commit b3dacebc33af7e39bbb25ecd7f6c8853a61f0579.