added some comments
added primary input api calls