Add read/write function
add backtrace
add string abstraction to code