Test script now tests layout

Test script can now test layout via the -l option.
Comments

added a bunch of comments for each function...