moved procedure body lines into package declaration (#27)
used smaller data types where possible (#27)
added declaration for triple list (#27)