added function to exclude specific files; cleaned up and refactored renderer