Added comments, created network parsing algorithm