Changed some metadata and optimized some loops
Some nice way to create empty arrays