Fixed printS() to be static
Moved index and added Config for root dir etc.