fix some compile errors and update README