Additions 1 and Testing

Added code for triggering functions based on the range of pixel values.