removed duplicate function + added some comments to header files