created Lab class encapsulating calculations and lab specific constants, __main__ block moved to scripts/main.py