added API code
deleted commented code
registered app with urls