refactoring

replaced fopen by open to hopefully decrease the time reading from
file...