fixed some typos
added debug options