added some spin analytics as well as refactored pseudo distributed mode