rename some vars, reindent some
have general scroll speed factor