Moved variables to library, added functions, shortened ever modules unique interrupt vector.