move media into external directory
tweak code formatting
rename to core.lua
fix pixel border