Several usability fixes and compiler warnings