fixes bug in shared handle
rewrites resource::map functional, updates main program
adds texture resource to window class
updates main program for graph test