Crouching implemented.

Also cleaned some code at main, increashed analog threshold and some
smaller things.