added delete node functionality and more