Bug fixes and enhancements

- Temporary file is generated in system temp directory so the original .class file doesn't get deleted.
- Generated buffer is marked read only to prevent accidental changes and saves to the .class file