corrected folder layout and some minor code changes

Signed-off-by: DarkSnake-Kobra <jbttoms@gmail.com>