Updates and refactoring

Adding a new option (changing the signifigance level) and cleaning up
the code a little.