Explicitly added $name value to generated advanced modules
fixed issue with block layout example in the documentation