Added a lot more options for inputs. Also created a helper function that will auto close xml tags when left out.