fix inspect command in ncurses patch, check address length, use c.changed() in export patch and some cleanup