Added terminfo
Fixed few things