added check_memory function to determine if any pool usage is over 50%
Merge pull request #2 from msacks/master

added check_memory function