Refactoring the code and add first new feature ( load parameters from JSON file)

Hi, i begin writing a SDR scanner software, and i would like use your heatmap script for showing the result can.
I have refactored your code for facilitating the lisibility and prepare for adding news features

Don't hesitate contact me for more informations