added xml for preferences and class for access on it
solved problem with wrong counted money by right time