Changes to path separator and fixed some of my code