removed uncessary comments
moved caching into get
changed leaf type
set cache