ver. 0.4 - processing 2 compatible

updated code for processing 2