Started tidying up a some of the code by making frame templates stored in a separate file, next up is to add a utility file where I'll keep all the utility functions such as string splitting.