refactoring base script

moved some functions

added documentation and TODO lines
added udp/1701

L2TP