refactoring, javadoc
formatting
formatting
efficiency improvement and bugfixes on Erdos Renyi