Code convention & error amplitude filtering

Updated code convention to be in-line with BTC pre-defined conventions.
Added error amplitude filtering for digishield based off daft27's
contribution.