Removed debug routines & licence ex. ; 115 lines