Added documentation and corrected missing directory change