refactored sources

fixed pointer fail

encapsulated common operations

(0) -3 +3 +10 +30 tip

mercurial