removed alloutputsexist and get and putfile code + small bug fixes