lots of fixes and updates to minimalist td, cursor works properly, etc