Added functionality to work conditionally on Raspberry Pi and made params.py a template