init commit
readme update and endpoint logic included