Codebase rewritten, Settings API added and other improvements