Fixed some syntax errors.
Revamed index and single.