updated layout
code tweaks
better explanations