Improve EP struct validation, remove print stmts, add getVersion