v0.4: Release notes, Version number, Read-Me

Jira: MADLIB-568
diff --git a/ReadMe.txt b/ReadMe.txt
index 01fe6d6..800f6e4 100644
--- a/ReadMe.txt
+++ b/ReadMe.txt
@@ -18,18 +18,20 @@
 Changes between MADlib versions are described in the ReleaseNotes.txt file.
 
 MADlib incorporates material from the following third-party components:
-- Eigen 3.0.3 "is a C++ template library for linear algebra"
-  http://eigen.tuxfamily.org/index.php?title=Main_Page
-- Boost 1.46.1 (or newer) "provides peer-reviewed portable C++ source 
-  libraries"
-  http://www.boost.org/
-- doxypy 0.4.2 "is an input filter for Doxygen"
-  http://code.foosel.org/doxypy
 - argparse 1.2.1 "provides an easy, declarative interface for creating command
   line tools"
   http://code.google.com/p/argparse/
+- Boost 1.46.1 (or newer) "provides peer-reviewed portable C++ source 
+  libraries"
+  http://www.boost.org/
+- CERN ROOT is "an object oriented framework for large scale data analysis"
+  http://root.cern.ch/
+- doxypy 0.4.2 "is an input filter for Doxygen"
+  http://code.foosel.org/doxypy
+- Eigen 3.0.3 "is a C++ template library for linear algebra"
+  http://eigen.tuxfamily.org/index.php?title=Main_Page
 - PyYAML 3.10 "is a YAML parser and emitter for Python"
   http://pyyaml.org/wiki/PyYAML
 
-License information regarding MADlib and included 3rd party libraries can be 
+License information regarding MADlib and included third-party libraries can be 
 found inside the license directory.
diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt
index 3a8dab5..3edd2af 100644
--- a/ReleaseNotes.txt
+++ b/ReleaseNotes.txt
@@ -1,18 +1,75 @@
 MADlib Release Notes
 --------------------
 
-These release notes contain the significant changes in each MADlib release, 
+These release notes contain the significant changes in each MADlib release,
 with most recent versions listed at the top.
 
-A complete list of changes for each release can be obtained by viewing the git 
+A complete list of changes for each release can be obtained by viewing the git
 commit history located at https://github.com/madlib/madlib/commits/master.
 
 Current list of bugs and issues can be found at http://jira.madlib.net.
 
 --------------------------------------------------------------------------------
+MADlib v0.4
+
+Release Date:  2012-Jun-18
+
+Bug Fixes:
+* Association Rules:
+    - assoc_rules() now uses schema-qualified function calls (MADLIB-435)
+* Decision Trees:
+    - Enhanced correctness (MADLIB-409, 502, 503)
+    - Improved handling of invalid arguments (MADLIB-331)
+* k-Means:
+    - Improved handling of invalid arguments (MADLIB-336, 364, 459)
+* PLDA:
+    - Improved robustness (MADLIB-474)
+* Sparse Vectors:
+    - svec_sfv() now uses locale-aware sorting (MADLIB-457)
+    - Operators now install to MADlib schema (MADLIB-470)
+
+New Features/Improvements:
+* C++ Abstraction Layer:
+    - Support for "function pointers" (MADLIB-370)
+    - Support for sparse vectors (MADLIB-371)
+    - Support for more Eigen (linear algebra) types (MADLIB-533)
+* Decision Trees:
+    - Code refactoring and optimization (MADLIB-410, 476, 504, 509)
+    - Documentation improvments (MADLIB-507)
+    - Output table now contains unencoded information (MADLIB-434)
+    - Enhance the missing value handling for continuous features (MADLIB-493)
+* Hypothesis Tests:
+    - Pearson chi-square test (MADLIB-390)
+    - One- and two-sample t-Tests (MADLIB-391)
+    - F-test (MADLIB-392)
+    - Mann-Whitney U-test (MADLIB-393)
+    - Kolmogorov-Smirnov test (MADLIB-394)
+    - Wilcoxon-Signed-Rank test (MADLIB-405)
+    - One-way ANOVA (MADLIB-406)
+* PostgreSQL Extensibility:
+    - Support for CREATE EXTENSION in PostgreSQL >= 9.1 (MADLIB-316)
+    - Availability on PGXN (MADLIB-334)
+* Probability Functions:
+    - Wrap all distribution functions implemented by Boost (MADLIB-412)
+    - Wrap Kolmogorov distribution function from CERN ROOT project (MADLIB-413)
+* Random Forests:
+    - New module (MADLIB-419)
+* Support:
+    - Add elementary matrix/vector functions (e.g., norm/distances etc.)
+      (MADLIB-532)
+* Viterbi Feature Extraction:
+    - New module (MADLIB-478)
+
+Known issues:
+    - svec_sfv() does not support collations, as introduced with PostgreSQL 9.1
+      (MADLIB-558)
+    - Invalid arguments are not always guaranteed to be handled gracefully and
+      may lead to confusing error messages (MADLIB-28, 359, 361, 363)
+
+--------------------------------------------------------------------------------
 MADlib v0.3
-    
-Relase Date:  2012-Feb-9
+
+Release Date:  2012-Feb-9
 
 New features:
 * Installer:
@@ -55,12 +112,12 @@
     - Function version() returns Madlib build information (MADLIB-309)
 
 Bug fixes:
-Sparse vectors:
+* Sparse vectors:
     - Fixed sparse-vector type case problems (MADLIB-282, MADLIB-305)
     - Fixed a situation where using svec_svf() could cause a segmentation fault
       (MADLIB-350)
-    - Increased compatibility with internal PostgreSQL conventions (MADLIB-257)    
-Logistic regression:
+    - Increased compatibility with internal PostgreSQL conventions (MADLIB-257)
+* Logistic regression:
     - Handle numerical instability more gracefully (MADLIB-343, MADLIB-345)
     - Handle unexpected inputs more gracefully (MADLIB-284, MADLIB-344)
     - Fixed "Random variate x is nan, but must be finite" issue (MADLIB-356)
@@ -94,21 +151,21 @@
 * prepared Solaris support in a later release (MADLIB-204)
     - added support for Sun Compiler in CMake build script
     - fixed all compilation errors with Sun compiler
-* added UDF to mimic "CREATE TABLE AS ...", as a workaround for a Greenplum 
+* added UDF to mimic "CREATE TABLE AS ...", as a workaround for a Greenplum
   issue (MADLIB-241). Included this as GP Compatibility module.
 * madpack utility:
     - dropped madpack dependency on PygreSQL (MADLIB-217)
     - improved security in madpack install-check (MADLIB-229)
-    - fixed bashism in madpack (MADLIB-222) 
+    - fixed bashism in madpack (MADLIB-222)
     - fixed install-check not running on non-default schema (MADLIB-251)
-        
+
 Modules/methods:
 * SVM (kernel_machines):
     - fixed cumulative error count in svm_cls_update() function
     - improved memory management in SVM module
 * Linear regression (regress):
     - fixed unexpected behavior for some edge cases (MADLIB-214)
-    - fixed crashing with huge number of independent vars (MADLIB-250) 
+    - fixed crashing with huge number of independent vars (MADLIB-250)
 * Logistic regression (regress):
     - added support for arbitrary expressions for dep./indep. variables, not
       just column names (MADLIB-255)
@@ -119,10 +176,10 @@
     - added check for sorted dictionary to svec_sfv (MADLIB-187)
 * Decision Tree (decision_tree):
     - now can be run multiple times in one session (MADLIB-156)
-   
+
 Known issues:
 * non-unified API for several SQL UDFs (MADLIB-208)
-* performance of the conjugate-gradient optimizer in logistic regression 
+* performance of the conjugate-gradient optimizer in logistic regression
   can be very poor (MADLIB-164)
 
 --------------------------------------------------------------------------------
@@ -146,7 +203,7 @@
 Known issues:
 * non-unified API for several SQL UDFs (MADLIB-208)
 * running decision tree more than once in one session fails (MADLIB-156)
-* performance of the conjugate-gradient optimizer in logistic regression 
+* performance of the conjugate-gradient optimizer in logistic regression
   can be very poor (MADLIB-164)
 * svec_sfv function doesn't check for sorted dictionary (MADLIB-187)
 
@@ -167,7 +224,7 @@
 * Linear & Logistic Regression (regress)
 * SVD Matrix Factorisation (svdmf)
 * Sparse Vectors (svec)
-   
+
 --------------------------------------------------------------------------------
 MADlib v0.1.0prerelease
 
diff --git a/src/config/Version.yml b/src/config/Version.yml
index 86cc0e3..ff7cbee 100644
--- a/src/config/Version.yml
+++ b/src/config/Version.yml
@@ -1 +1 @@
-version: 0.4dev
+version: 0.4