Fixed #69 #59

Redesign of chroot.sh (usage of functions), install.sh has been
rewritten according to new coding conventions, rest of the code has to
be aligned accordingly
Update of coding convention

coding conventions update, rest of the code needs to be accordingly
changed