fixed screenshot export issues, better oop, code formatting