uglycode
made some wild and crazy changes
added function to push layers, changed file structure, still very ugly