Fix compiler warnings and update README