magicsword.github.com source code