Moving sample to examples folder. Added api sample