Added dependency parsing. Added serialization