typos corrected (thanks to Sven)
typos and stupid code removed