Cleared up syntax and improved documentation.