add examples and code cleanup
merge remote readme