made the getframe function a bit more safe and modified a few names for clarity
add RAII wrapper class for sources
updated UI files