Added initial code, usage, do_exit and list functions etc.