Made file encoding configurable
Added source tar and zip file generation