Refactoring

Refactored print strings.
Moved refactored code into files with include functions.