Add constants for the timeout times, made some comment changes and a little code cleanup.
Created perl version of SimonPi using HiPi perl module.