Fixed errors and added new samples.