Changed switching class to analog for use with alarm buzzer
Added comments and changed naming of checkOutOfBounds method to private naming standard
Added comments