Added in the ability to make overlay in xml

Added the java code to make overlay.