added read me and comments in api controller