fixed rounding error in tm calc
added base layout for home page