Implemented redirects

-Also removed obsolete method for triplet extraction
-Cleaned the program startup point