bug fixing, added templates specializations
added example