Finished new encoding scheme. Fixed the graphic position editor.