Updated readme file with code example. Added bin and obj to git ignore.