add last newline to the bin file
Move function out of the scope
Use already defined module

instead of load it again
Remove empty file