Some media lib work
Updated patch program 
Added more superglobals to Input class