Write documentation and update syntax + spacing