first pass removing redundant code
changed add_readline() to add()
removed 'sub' param of add()
added histlimit param to add()
updating setup