Changed program to accomodate multiple folders

Made part of program a function so we could call it later for
multiple folders. Called the function twice for two folders.

Resolves #8.