5. The Subroutine Library

Onwards with the code for my (useful) subroutines.