Created write new agent method, yet to test

Also created two classes for handling properties, still working on those