fixed the formatting in all the files and added the license to each file: This closes #4

Signed-off-by: Sebastien Goasguen <runseb@gmail.com>