Moved inflation library to a new 'library' module; unit testing