updated align, added extra examples, updated docs and bug fixes