added NodeOperations commands and API and did minor refactoring