Added nail functions previously described in FGD

Addresses all raised in #58