README/sample updated; tests against base64 added; swapped semantics bugfixed (lol);