security commit
finished refactoring and documenting, this is the first beta