Improve comment in calculate_tables.py
Fix bug in lightmeter.c