Version 0.4

Fixed various reference problems