added backup, swap and undo dirs
fixed chars and lines padding