Not sure what I why I checking for these being defined prior to being defined.
Improved doc blocks
Added a contant for pin pointing the lib directory
Added and implemented a LIB constant for easily referencing the path to the lib directory