added e few comments and fixed some space issues