updated PureData external source - reorganized the code, added the same functions as Max external