Script will now search through all lines until it finds a package declaration or the word "public"