Cleaned code up and added library in preparation for blob detection