Added Code documentation, withdrawn check, and update code