Fixed typos and cleaned from debug code.