For the return values, I followed this rule: if the fuction returns true on success, it should return false, error on error; for every other case it should return nil, error on error.
Also, who doesn't want to edit code in 3D ? The line depth depends on the indentation level.
Libs additions: font.load, font:unload, font:getWidth, fs.getDirectory, fs.setDirectory, fs.exists
Editor additions: syntaxic coloring and mono font
sf2dlib update: you will need the latest version of ctrulib.
Also, because of the lib font needs, the sftdlib was modified.