Layout according to viewport (vmin).
Code cleanup and commenting