Finishied the main functionality for overlaying text. Still need to do error handling