Revamped compiler.
Renamed loaded flag to added.
Added compiler template for static/optimized/extras.