Added check for note directory for all functions

This method sucks. Need to write a main function that calls further down, which
unfortunately will present a three-layer system, but it's better than copying
and pasting code seven times.