Adds documentation for object syntax.

Updates the docs regarding the object syntax.
I kinda just want each section of the docs to be able to stand on its own so you don't have to jump around.