Restructured directory layout and further development on script backend