Fixed sample and added gradle build