Made script more functional; rewrote the lambda function as my own.

Changed some mechanics of string creation (concatenation now instead of
appending to list and then joining that on whitespace later)