Complete. Using stat_summary() now. Commented out LaTeX part, because it doesn't seem to work.
Removed LaTeX bit, fixed some formatting and such.