Fixed formatting and many minor changes.

I did a lot of small things. Prepared for final stages of Beta.