Restructured directory layout

Updated testing script (work in progress)
Added license, trimmed whitespace