Adding a utility function + removing a redundant utility function + cleaning up documentation