Fixed syntax errors and update documentation.
Added tests and update syntax.