adding GPL
added section for examining the entrance, some error handling and some internal functions