refactor laser module to follow coding guidelines as it is meant to be a...

...n example