Can now add ideas with relations to other ideas. Code cleanup