Add speedTest for linux usage (The time module in windows is not precise enough). Also change subprocess calls for linux usage. Some other changes.