Added loading from files, ported code is now 100% done