General tidy up of code.
Renamed many variables and functions for consistency and clarity.
Added SMI (eq) output which shows the price level pivot to make the SMI higher or lower than its previous value.
Added some simple development testing tools ( as notes at the bottom ) for newer coders knowledge.