Add comments and minimal documentation