Simplified other sources inclusion by using require.

replaced dofile with require and removed unnecessary path variables