Removed old code, reorganized code, added comments
Removed old code, reorganized code, added comments

RJFreund/OpenDSA,RJFreund/OpenDSA,RJFreund/OpenDSA,RJFreund/OpenDSA,vkaravir/JSAV,RJFreund/OpenDSA,RJFreund/OpenDSA,RJFreund/OpenDSA,RJFreund/OpenDSA,vkaravir/JSAV