http://codex.wordpress.org/Developer_Documentation

http://humanshell.net/wordpress/wordpress-initialization/