comment, close file, improve visualization and make interactive
allow setting layout parameters from main