File cleanup and prototype enhancements (Function.method and String.format)