Minor optimization in various places.
Completed the syntax guide.