Added new previous and next buttons. Created config file and better relative path calculation