Update gc.as to return boolean in case of gc works, add documentation