added some handy files and updated the code for the correct view port