Updated notes and moved some align utility functions to a separate file