Resolve "Refactor get_data function of DataContainer"
Description
DataContainer.get_data
method has been re-designed according to the description in #209 (closed).
Unittest has been updated accordingly.
Additional information
Changes included here have been used to improve the implementation of DataContainer.get_average
function as it was originally suggested by @angqvist.
Closes #209 (closed)