Fixed qshell. Added API. Added format tool to qshell.