Added coal_open_manual and coal_close functions. Need to write unit tests for them.