Update build file
Add Exposure handler skeleton and tidying main
Change from floats to doubles for accuracy