Started rewriting reading process

Very buggy and a lot of style corrections following the guide lines my
new ide provides (PyCharm)