added doc block and converted to filemakerstandards.org style