doc fix and minor code cleanup
added doc block and converted style to filemakerstandards.org