implemented laser model and laser tests

Moved code for lasers into the laserModel class, and implemented tests for it