added peek, poke and restructured method order
cleaned up