Added doc to all necessary functions