Patterns

Changed matrix to be 'pattern'. Hopefully, this will allow for more diverse network architectures in the future. Some general folder restructuring. E.g, 'util' to 'lib', yada yada.

Small tweaks.