initial code update

changed the layout; changed the command window behaviour; added license
header to files that has been touched