Fixed typos, silenced warnings