Refactor

Refactors the visual elements to instantiate each instance by parsing the XML instead of cloning. This removes a lot of duplicate code, making everything more DRY and clean.
Also adds an standard library XML file.