Added more customization and features

Added more RTD features.
Optimized some of the files.
Added configuration for customization.