Finished most functionality for splitting layers, which works with all 6 examples.

Currently updating attributes to function as well. Partially done...