lots of tweaks
CS tweaks, file structure updated, moved some procedural code to better places
fixing merge conflict: tw-init.php