fixed bug with no property
added some phpdoc