init repo

has implemented simple functions, works for array and normal object