Writing a Vortex encoding

Work in progress.