Made more portable (after first tests)

Removed keywords, and stopped mixing readlines with iteration.