lib package

Set of helper functions used in the full library.