fixed cypher typos and added better documentation