Fix for leaking web workers
Add ability to create other file types