Initial add for standard sampling rate
Added comments, started if loop for main processing