Removed doc subdirectory and fixed null searching by doing a typeof check