Removed hardcoded location to file. Now file has to be provided as argument; some minor warning fixes.