moved samples and snippets from jcypher