First working version; to-do: handle PPAs, internal documentation.