added LICENSE
minor refactoring; bug fix
processHandshakeMessages - predicate correction