code cleaning: no lines with more than 80 characteres
code cleaning: sub-functions for init
code cleaning: add comments