Added file trace functions

Still in progress