Fixed file input behavior
Got rid of pickle