Changed base 64 to base N

Closes #2