Bug fixes

Added filename sanatization, compilation tagging to track metadata