Fixed minor functions and added to man