Moved urls to separate file
Moved certain functions into separate files

removed all compile warnings with the exception of
unused variables that will be used shortly