bugs fixed, additional graph representation added