improvement of first version, comments added

Comments have been added to the code. The project architecture is way
too simplist and naive right now because of my inexperience, but a few
ideas are coming along : implementation of a SingletonManager class. It
doesn't serve any purpose right now but it could be a good start for a
more solid architecture.