refactoring of controller locations
Added input date to millisecond conversion on attributes
Fixed some imports